import request from "@/utils/request.js"

//新建事项
export function addFawen(data) {
	return request({
		url: `/tbUserNewDispatch/add`,
		method: 'post',
		data
	})
}

// 查询新建事项单条数据
export function getXinjian(id) {
	return request({
		url: `/tbUserNewDispatch/get/${id}`,
		method: 'GET',
		// data:{id},
	})
}
//审批
export function shenpiXinjian(data) {
	return request({
		url: `/tbUserNewDispatch/approval`,
		method: 'post',
		data
	})
}
// 查询新建事项列表
export const getXinjianList = data => {
	return request({
		url: `/tbUserNewDispatch/list`,
		data
	})
}
// 1 获取所有用户【非树结构】
export function getUserList(data) {
	console.log(data);
	return request({
		url: `/assess/common/query/user/all`,
		data
	})
}

// 催办通知
export function urgingFlowApi(data) {
	return request({
		url: `/tbUserNewDispatch/reminderNotice`,
		method: 'get',
		data
	})
}
